import request from '@/request/request.js';
// import upload from '@/upload/upload.js';

/**
 * @function 申请服务
 */
export function applyServer(data) {
	return request({
		url: '/xcxBusiness/applyServer',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 兑换人才码
 */
export function exchangeCode(data) {
	return request({
		url: '/xcxBusiness/exchangeCode',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 获取我的人才码/特邀人才码
 */
export function getMyTalentCode(data) {
	return request({
		url: '/xcxBusiness/getMyTalentCode',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}


/**
 * @function 获取申请字段列表信息
 */
export function getSqzdList() {
	return request({
		url: '/xcxBusiness/getSqzdList',
		headers: {
			isToken: true,
		},
		method: 'get'
	})
}

/**
 * @function 获取按照职称列表信息
 */
export function getZcList() {
	return request({
		url: '/xcxBusiness/getZcList',
		headers: {
			isToken: true,
		},
		method: 'get'
	})
}

/**
 * @function 获取政策词条详情信息
 */
export function getZcctInfo(param) {
	return request({
		url: '/xcxBusiness/getZcctInfo',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 获取按荣誉/按职业资格称列表信息
 */
export function getZyRyzgList() {
	return request({
		url: '/xcxBusiness/getZyRyzgList',
		headers: {
			isToken: true,
		},
		method: 'get'
	})
}

/**
 * @function 政策匹配
 */
export function getZcctList(param) {
	return request({
		url: '/xcxBusiness/getZcctList',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 获取申请列表信息--根据类型
 */
export function getsqInfoByfl(param) {
	return request({
		url: '/xcxBusiness/getsqInfoByfl',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}


/**
 * @function 政策列表查询
 */
export function getZcPageList(param) {
	return request({
		url: '/xcxBusiness/getZcPageList',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 政策详情-词条列表
 */
export function getZcInfo(param) {
	return request({
		url: '/xcxBusiness/getZcInfo',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 政策列表查询
 */
export function getMyPolicypage(param) {
	return request({
		url: '/xcxBusiness/getMyPolicypage',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 人才码地图-- 列表
 */
export function getRcmdtList(param) {
	return request({
		url: '/xcxBusiness/getRcmdtList',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 人才码地图-- 列表
 */
export function getRcmdtInfo(param) {
	return request({
		url: '/xcxBusiness/getRcmdtInfo',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 扫人才码
 */
export function scanQsr(data) {
	return request({
		url: '/xcxBusiness/scanQsr',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}


/**
 * @function 获取业务字段数据
 */
export function getYwzdsj(param) {
	return request({
		url: '/xcxBusiness/getYwzdsj',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: param
	})
}


/**
 * @function 保存其他业务
 */
export function saveQtyw(data) {
	return request({
		url: '/xcxBusiness/saveQtyw',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

